/* 
 * File:   TrafficLight.h
 * Author: mikey
 *
 * Created on August 25, 2010, 10:03 PM
 */

#ifndef TRAFFICLIGHT_H
#define	TRAFFICLIGHT_H

#include <string>
using namespace std;

class TrafficLight {
public:
    TrafficLight();
    TrafficLight(int);      // Constructor with initial red light state.
    void goRed();           // lightState is set to 0.
    void goAmber();         // lightState is set to 5.
    void goGreen();         // lightState is set to 1.
    string getState();      // Returns the light state as a string.
    int getIntState();
private:
    int lightState;        // 1 = Go = Green; 0 = Stop = Red; 5 = Amber = Slow Down.

};

#endif	/* TRAFFICLIGHT_H */

